package com.chen.springboot.Service;

import com.chen.springboot.mapper.ScheduleMapper;
import com.chen.springboot.pojo.Schedule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScheduleService {
    @Autowired
    private ScheduleMapper scheduleMapper;
    public void setScheduleDao(ScheduleMapper scheduleMapper){
        this.scheduleMapper = scheduleMapper;
    }
    public List<Schedule> querySchedule(){
        return scheduleMapper.querySchedule();
    }

}
